﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSSD.Server.DataModel.ManagerBenchModel
{
    public class UserGroupModel
    {
        #region 字段
        private int userGroupID;

        public int UserGroupID
        {
            get { return userGroupID; }
            set { userGroupID = value; }
        }
        private string userGroupDesc;

        public string UserGroupDesc
        {
            get { return userGroupDesc; }
            set { userGroupDesc = value; }
        }
        private string permissionID;

        public string PermissionID
        {
            get { return permissionID; }
            set { permissionID = value; }
        }
        private string userGroupName;

        public string UserGroupName
        {
            get { return userGroupName; }
            set { userGroupName = value; }
        }
        private int createUserID;

        public int CreateUserID
        {
            get { return createUserID; }
            set { createUserID = value; }
        }
        private DateTime createDateTime;

        public DateTime CreateDateTime
        {
            get { return createDateTime; }
            set { createDateTime = value; }
        }
        private string accountCode;

        public string AccountCode
        {
            get { return accountCode; }
            set { accountCode = value; }
        }
        private string spellCode;

        public string SpellCode
        {
            get { return spellCode; }
            set { spellCode = value; }
        }
        #endregion
    }

    public class MenuModel
    {
        #region 字段
        private int menuID;
        public int MenuID
        {
            get { return menuID; }
            set { menuID = value; }
        }

        private int menuParentID;
        public int MenuParentID
        {
            get { return menuParentID; }
            set { menuParentID = value; }
        }

        private string menuText;
        public string MenuText
        {
            get { return menuText; }
            set { menuText = value; }
        }

        private string menuTag;
        public string MenuTag
        {
            get { return menuTag; }
            set { menuTag = value; }
        }

        private int menuLevel;
        public int MenuLevel
        {
            get { return menuLevel; }
            set { menuLevel = value; }
        }

        private int menuIndex;
        public int MenuIndex
        {
            get { return menuIndex; }
            set { menuIndex = value; }
        }

        private int menuType;
        public int MenuType
        {
            get { return menuType; }
            set { menuType = value; }
        }

        private string blank1;
        public string Blank1
        {
            get { return blank1; }
            set { blank1 = value; }
        }

        private string blank2;
        public string Blank2
        {
            get { return blank2; }
            set { blank2 = value; }
        }
        #endregion
    }

    [DapperEx.Table(Name = "UserGroupMenu")]
    public class UserGroupMenuModel
    {
        #region 字段
        private int menuID;

        [DapperEx.Id(CheckAutoId = true)]
        public int MenuID
        {
            get { return menuID; }
            set { menuID = value; }
        }

        private int userGroupID;
        public int UserGroupID
        {
            get { return userGroupID; }
            set { userGroupID = value; }
        }

        private int userGroupMenuID;
        public int UserGroupMenuID
        {
            get { return userGroupMenuID; }
            set { userGroupMenuID = value; }
        }

        private int menuType;
        public int MenuType
        {
            get { return menuType; }
            set { menuType = value; }
        }

        private string blank1;
        public string Blank1
        {
            get { return blank1; }
            set { blank1 = value; }
        }

        private string blank2;
        public string Blank2
        {
            get { return blank2; }
            set { blank2 = value; }
        }
        #endregion
    }
}
